From ae1953c1577a0db831aa163289353ee60380872e Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 13 Mar 2001 14:19:33 +0000 Subject: [PATCH] [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include SscrollBarP.h. --- src/xterm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index b064426b1d5..eaecea54102 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -117,7 +117,6 @@ extern void _XEditResCheckMessages (); #if defined USE_MOTIF #include /* for LESSTIF_VERSION */ #include -#include #else /* !USE_MOTIF i.e. use Xaw */ #ifdef HAVE_XAW3D @@ -9953,10 +9952,10 @@ XTread_socket (sd, bufp, numchars, expected) f = x_any_window_to_frame (dpyinfo, event.xkey.window); #if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS - /* I couldn't find a way to prevent LessTif scroll bars - from consuming key events. */ if (f == 0) { + /* Scroll bars consume key events, but we want + the keys to go to the scroll bar's frame. */ Widget widget = XtWindowToWidget (dpyinfo->display, event.xkey.window); if (widget && XmIsScrollBar (widget)) -- 2.30.2